#/bin/bash
version=2.3.2
mv ../../oms-launch/target/oms-launch.jar ./oms-launch.jar
mv ../../oms-ui/dist ./dist
docker build --no-cache -t oms-service:${version} .
rm -rf ./oms-launch.jar
rm -rf ./dist
docker tag oms-service:${version} registry.cn-hangzhou.aliyuncs.com/orionsec/oms-service:${version}
docker tag oms-service:${version} registry.cn-hangzhou.aliyuncs.com/orionsec/oms-service:latest
